import Vue from 'vue'
import Router from 'vue-router'
import Main from '@/views/Main'
import Login from '@/views/Login'
import Metting from '@/views/Metting'
import Manger from '@/views/Manger'
import Forecast from '@/views/Forecast'
import My from '@/views/My/My'
import Mymanger from "@/views/My/Manger"
import Updatamanger from "@/views/My/Updatemanger"

Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    name: 'Login',
    component: Login
  }, {
    path: '/main',
    name: 'Main',
    component: Main,
    redirect: '/main/metting',
    children: [{
      name: 'Metting',
      path: 'metting',
      component: Metting
    }, {
      name: 'Manger',
      path: 'manger',
      component: Manger
    }, {
      name: 'My',
      path: 'my',
      component: My
    }, {
      name: 'Mymanger',
      path: 'mymanger',
      component: Mymanger
    }, {
      name: 'Updatamanger',
      path: 'updatamanger',
      component: Updatamanger
    }, {
      name: 'Forecast',
      path: 'forecast',
      component: Forecast
    }]
  }]
})
